<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            font-size: 62.5%;
        }
        div{
            /* font-size: 12px; */
            color: red;
        }
        p{
            /* font-size:inherit; */
            /* font-size: 20px; */
            /* font-size: 50%; */
            /* font-size: 2em;

            font-weight: bold;

            font-family: 楷体,宋体,Arial;

            font-style: italic; */
            
            font:italic bold 2em 楷体,宋体,Arial;
        }
    </style>
</head>
<body>
    <div>
        Java开发
        <p>Web前端开发</p>
    </div>
</body>
</html>